<% provide(:title, t('document.index.title')) %>
<h1><%= t('document.index.title') %></h1>

<%= render 'browse-options' %>

<%= will_paginate %>

<ul class="documents">
	<% if @documents.each do |document| %>
		<%= render document %>
	<% end.empty? %>
		<%= t('content.list.no_elements', elements: t('activerecord.models.document', count: 2)) %>
	<% end %>
</ul>

<%= will_paginate %>